package com.zzb.projectfactory.framework.validator.ret;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 验证结果返回
 * Created by zhangzhenbin on 2016/10/12.
 */
public class ValidatorRet implements Serializable{
    public final static int SUCCESS = 1;
    public final static int FAIL = 0;

    private int status = 1;
    private String msg = "验证成功";
    private Map<String,List<String>> validatorMsgs = new HashMap<>();

    public boolean isSuccess(){
        return status == SUCCESS;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<String, List<String>> getValidatorMsgs() {
        return validatorMsgs;
    }

    public void setValidatorMsgs(Map<String, List<String>> validatorMsgs) {
        this.validatorMsgs = validatorMsgs;
    }
}
